package com.atguigu.tingshu.search;

import com.atguigu.tingshu.common.result.Result;
import com.atguigu.tingshu.model.album.AlbumInfo;
import com.atguigu.tingshu.model.user.UserInfo;

import java.lang.reflect.Method;
import java.util.List;
import java.util.Map;

/**
 * Author:huzhongkui
 * Date: 2025-03-25 星期二 15:35:56
 * Description:
 */
public class MethodReturnType {


    public UserInfo getHaha() {

        return null;
    }


    public Result getHeihei() {

        return null;
    }

    public Map<String, List<AlbumInfo>> getHehe() {

        return null;
    }

    public List<Map<String, List<Long>>> getXixi() {

        return null;
    }

    public static void main(String[] args) {

        for (Method declaredMethod : MethodReturnType.class.getDeclaredMethods()) {
            if (declaredMethod.getName().equals("getHaha")) {
                System.out.println("getHaha()返回值类型"+declaredMethod.getReturnType());
                System.out.println("getHaha()GenericReturnType返回值类型"+declaredMethod.getGenericReturnType());
            }

            if (declaredMethod.getName().equals("getHeihei")) {
                System.out.println("getHeihei()返回值类型"+declaredMethod.getReturnType());
                System.out.println("getHeihei()GenericReturnType返回值类型"+declaredMethod.getGenericReturnType());
            }


            if (declaredMethod.getName().equals("getHehe")) {
                System.out.println("getHehe()返回值类型"+declaredMethod.getReturnType());
                System.out.println("getHehe()GenericReturnType返回值类型"+declaredMethod.getGenericReturnType());
            }


            if (declaredMethod.getName().equals("getXixi")) {
                System.out.println("getXixi()返回值类型"+declaredMethod.getReturnType());
                System.out.println("getXixi()GenericReturnType返回值类型"+declaredMethod.getGenericReturnType());
            }


        }


    }


}
